
<wxs src="../../utils/common.wxs" module="filter" />
<view class='topic-view'>
  <view>
  	<label bindtap='allSend' class="{{select==20?'select':''}}" data-code='20'>已发布</label>
  </view> 
  <view>
  	<label bindtap='allSend' class="{{select==10?'select':''}}" data-code='10'>审核中</label>
  </view> 
  
</view>
<!-- 话题 -->
<view class='bbs'>
	<view class='item' wx:for="{{tieziList}}"  bindtap="turnDetail" data-code='{{item}}'>   
		<view class='info'>
			<image class="image" src="{{item.wxUser.avatarUrl}}" />
			<view class='name'>{{item.wxUser.nickName}}
                <image  wx:if="{{item.browseNum>0}}"  src="../../image/shequ/hot.png" />
		        <image  wx:if="{{item.browseNum>9}}"  src="../../image/shequ/hot.png" />
		        <image  wx:if="{{item.browseNum>20}}"  src="../../image/shequ/hot.png" />
			</view>
			<view class='time'>{{filter.flitTime(item.created)}}</view>
			
			<view  class='shanchu' catchtap="deleteTiezi" data-code='{{item.id}}'>
				删除
			</view>
			<view class='bianji' catchtap="updateTiezi"  data-code='{{item.id}}'>
				编辑
			</view>
			
		</view>
		<view class='content'>{{item.title}}</view>
		<view class='image-list'>
			<image  wx:for="{{item.wxArticlesPic}}" class="image" src="{{item.url}}"/>
		</view>
		<view class='label'>#{{item.hotTopicTypeName}}</view>
		
		<view class='nums'>
			<view><image class="image" src="../../image/shequ/browse.png" /><span>{{item.browseNum}}</span></view>
			<view><image class="image" src="../../image/shequ/comment.png" /><span>{{item.commentNum}}</span></view>
			<view><image class="image" src="../../image/shequ/fabulous.png" /><span>{{item.likesNum}}</span></view>
		</view>
	</view>
</view>